
#ifndef __INTERM_BUFFER_HPP__
#define __INTERM_BUFFER_HPP__ 1

#include <iostream> 
#include <list>
#include <string> 

using namespace std; 

class IntermBuffer 
{
private: 
  int slots; 
  list<pair<string, string> > *buffers;
  pthread_mutex_t *buflocks; 
  unsigned long *bufsize; 
  unsigned long entrySize(pair<string, string>&);
public:
  IntermBuffer(int);
  ~IntermBuffer(); 
  void addEntry(int, pair<string, string>); 
  list<pair<string, string> >& getBuffer(int);
  void print(); 
}; 

#endif
